import java.util.Arrays;

public class swap1 {
    public static void main(String[] arges){
        int[] brr = {15, 65, 23, 19, 8, 72, 35, 4, 10};
        swap(brr,0,1);
        System.out.println(Arrays.toString(brr));
    }

    public static void swap(int[] arr,int a,int b){
        int temp=arr[b];
        arr[b]=arr[a];
        arr[a] = temp;
        System.out.print(""+a);
        System.out.print(""+b);
    }
}
